<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>H+ 后台主题UI框架 - 主页</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="row">
    <br>
    <div class="col-md-5">
        <form action="{:U('gamecard/index')}" METHOD="post">
            <div class="input-group ">
                <input type="text" name="card_no" class="form-control" placeholder="请输入 游戏卡号">
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-primary">搜索</button>
                </span>
            </div>
        </form>

    </div>
</div>

</div>
<div class="row">
    <br><br>
    <div class="col-md-12">
        <div class="tab-content">
            <div id="tab-1" class="tab-pane active">
                <div class="full-height-scroll">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped table-hover ">
                            <thead>
                            <tr>
                                <th ></th>
                                <volist name="data" id="vo"  key="key" >
                                    <th ><span style="display: inline-block; min-width: 60px;"> {$vo['ZH']} </span></th>
                                </volist>
                            </tr>
                            </thead>
                            <script>
                                function openWin(num) {
                                    //alert(num);
                                    var url='{:U("gamecard/detail")}?card_group='+ num;         //转向网页的地址;
                                    var name='detail';                            //网页名称，可为空;
                                    var iWidth=1000;                          //弹出窗口的宽度;
                                    var iHeight=600;                         //弹出窗口的高度;
                                    //获得窗口的垂直位置
                                    var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
                                    //获得窗口的水平位置
                                    var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
                                    window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');
                                    // window.open("AddScfj.aspx", "newWindows", 'height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
                                }
                                function dOne(id) {
                                    var r = confirm("确认要删除这张卡吗？");
                                    if (id == undefined && id == "") {
                                        alert("游戏卡id 不能为空！");
                                    } else {
                                        if (r) {
                                            var url = '{:U("gamecard/dOne")}?id=' + id;        //转向网页的地址;
                                            var name = '删除一张游戏卡';                            //网页名称，可为空;
                                            var iWidth = 900;                          //弹出窗口的宽度;
                                            var iHeight = 300;                         //弹出窗口的高度;
                                            //获得窗口的垂直位置
                                            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
                                            //获得窗口的水平位置
                                            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
                                            window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');

                                        }
                                    }
                                }
                            </script>
                            <tbody>
                                <tr>
                                    <td class="contact-type" >
                                        <a onclick="openWin('{$data.card_group.value}')"  title="所在批次" class="contact-type">
                                            <i class="fa fa-navicon text-danger"></i>
                                        </a>&nbsp;&nbsp;
                                        <a onclick="dOne('{$data.id.value}')"  title="删除这个游戏卡" class="contact-type">
                                            <i class="fa fa-trash text-info"></i>
                                        </a>
                                    </td>

                                    <foreach name="data" item="v" key="k" >
                                        <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">
                                            {$v['value']}
                                        </td>
                                    </foreach>

                                </tr>

                            </tbody>
                        </table>

                    </div>
                    <a href="{:U('gamecard/index')}" class="btn ">返回</a>
                    <div class=" row text-center contact-type page_show">
                        <style>
                            .page_show{
                                width: 100%;
                                margin-top:30px;
                            }
                            .page_show a{
                                padding: 16px 22px;
                            }
                            .page_show a:hover{
                                background-color: #18a689;
                                border-radius: 30px;
                                color: #ffffff;
                            }
                            .page_show .current{
                                padding: 20px;
                            }
                        </style>
                        {$page_show}
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>


<!-- 全局js -->
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
<script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
<!--<script src="{$Think.const.RESOURCE}js/plugins/metisMenu/jquery.metisMenu.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/layer/layer.min.js"></script>-->

<!--&lt;!&ndash; 自定义js &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/hplus.js?v=4.1.0"></script>-->
<!--<script type="text/javascript" src="{$Think.const.RESOURCE}js/contabs.js"></script>-->
<script type="text/javascript" src="{$Think.const.RESOURCE}js/content.js"></script>

<!--&lt;!&ndash; 第三方插件 &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/pace/pace.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/sweetalert/sweetalert.min.js"></script>-->

</body>

</html>